def openSchedule():
  return

def resetSimulation():
  return

def loadNew():
  return

from Tkinter import *
from ProcessStep import *
from RawMaterial import *
from FinishedGood import *
from WorkStation import *
from ControlBlock import *




def openPlantFile(self):
  print "Opening file {0}".format (cb1.plantFile)
  plantFile = open(cb1.plantFile, 'r')

#  s1.destroy()
#  r1.destroy

root = Tk()
root.bind("<<OpenPlant>>",openPlantFile)

#ws1 = WorkStation(root, 1, 120, "Station1a")
#ws2 = WorkStation(root, 2, 100, "Station2a")
#ws3 = WorkStation(root, 3, 100, "Station2a")
#ws4 = WorkStation(root, 4, 100, "Station2a")
#ws5 = WorkStation(root, 5, 100, "Station2a")
#ws6 = WorkStation(root, 6, 100, "Station2a")
#ws7 = WorkStation(root, 7, 100, "Station2a")
#ws8 = WorkStation(root, 8, 100, "Station2a")
#ws9 = WorkStation(root, 9, 100, "Station2a")
#ws10 = WorkStation(root, 10, 100, "Station2a")
#ws11 = WorkStation(root, 11, 100, "Station2a")

#s1 = ProcessStep(root, 1, "blue", "lightblue", "white", 10)
#r1 = RawMaterial(root,"TypeB",35)
#r1.addMaterial(30)
#f1 = FinishedGood(root,"Prod1", 235, 40)
#ws1.setcolor("red", "yellow")
#ws2.setcolor("blue", "white")

cb1 = ControlBlock(root)

print statIdle

root.mainloop()
